package com.pan.admin.module.loanProduct.dao;

import com.pan.admin.module.loanProduct.entity.po.LoanProductApplyFlowPO;
import com.pan.admin.module.loanProduct.entity.qo.LoanProductApplyFlowQO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  机构流程日志表
 *
 *  @author Pan
 */
@Mapper
public interface LoanProductApplyFlowDao {

    /**
     *  获取机构流程日志
     *  @param loanProductApplyFlowQO
     *  @return
     */
    List<LoanProductApplyFlowPO> list(LoanProductApplyFlowQO loanProductApplyFlowQO);

    /**
     *  查询清理长度总数
     *
     *  @return
     */
    int cleanCount(@Param("endTime") String endTime);

    /**
     * 清理流程日志表
     */
    int clean(@Param("limitSize") Integer limitSize, @Param("endTime") String endTime);

}
